=== TEST buildscript ===

buildscript {
  requires 'craftr-python'
}

apply 'python'

python {
  name = 'craftr-build'
  version = detect_version()
  license = 'MIT'
  author = 'Niklas Rosenstein <rosensteinniklas@gmail.com>'
  url = 'https://github.com/craftr-build/craftr'
  typed
  modulename = 'craftr'
  requirements {
    run 'python ^3.9'
    run 'astor ^0.8.1'
    run 'dataclasses ^0.6'
    run 'nr.caching ^0.4.0'
    run 'nr.functional ^0.1.0'
    run 'nr.parsing.core ^2.0.2'
    run 'nr.preconditions ^0.0.4'
    run 'nr.pylang.ast ~0.0.5'
    run 'termcolor ^1.1.0'
    run 'typing-extensions ^3.10.0.0'
    run 'nr.pylang.utils ^0.1.3'
    run 'beartype ^0.9.1'
    run 'loguru ^0.5.3'
    run 'localimport ^1.7.3'
    test 'types-termcolor'
  }
  entrypoint {
    console_scripts = [ 'craftr = craftr.__main__:main' ]
  }
  mypy { }
  pytest { }
}

=== EXPECTS ===

buildscript(_closure_1)

apply('python')

python(_closure_2)

=== END ===
